package com.example.kemgdemo.repository;

import com.example.kemgdemo.model.UserEntity;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

/**
 * 学号：1401030048
 * Created by 梁嘉伟 on 2019/7/11
 */
@Repository
public interface UserRepository extends BaseRepository<UserEntity, Long> {

//    @Query(value = "SELECT * FROM user WHERE username = ?1 ", nativeQuery=true)
//    UserEntity getByUsername(String username);
    UserEntity getByUsername(String username);
}
